package cn.intotw.pp.server.handler;

import cn.intotw.pp.entity.request.ServerBaseReq;
import cn.intotw.pp.entity.response.ServerBaseRes;
import cn.intotw.pp.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Chenxiang
 * @Description:
 * @create 2018/9/12 14:18
 */
@Component
public class P10001RequestHandler extends ServerBaseHandler {
    @Autowired
    UserService userService;
    public ServerBaseRes handle(ServerBaseReq serverBaseReq) {
        userService.login("123","456");
        ServerBaseRes serverBaseRes=new ServerBaseRes();
        serverBaseRes.setResCode("123");
        serverBaseRes.setResMessage("123");
        serverBaseRes.setTimestamp(String.valueOf(System.currentTimeMillis()));
        return serverBaseRes;
    }
}